package com.investment.advisor.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
public class PortfolioDTO {
    private Long id;
    private String name;
    private String description;
    private StrategyDTO strategy;
    private List<FundDTO> funds;
    private Map<Long, BigDecimal> weights; // 基金ID -> 权重
    private BigDecimal performance;
    private BigDecimal annualReturn;  // 年化收益率
    private BigDecimal maxDrawdown;   // 最大回撤
    private BigDecimal volatility;    // 波动率
    private BigDecimal sharpeRatio;   // 夏普比率
    private String creator;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
} 